using System;
using System.Collections.Generic;
using System.Text;

namespace StateMachine.Runtime
{
	public class Transaction
	{
		private char symbol;
		private List<StateNode> result;

		public Transaction( char symbol )
			: this( symbol, null )
		{ }

		public Transaction( char symbol, StateNode[] results )
		{
			this.symbol = symbol;

			if ( results != null )
				this.result = new List<StateNode>( results );
			else
				this.result = new List<StateNode>();
		}

		public char Symbol
		{
			get { return this.symbol; }
		}

		public List<StateNode> Result
		{
			get { return this.result; }
		}
	}
}
